package com.hh.demo.exception;

import lombok.Data;

/**
 * @author 黄浩
 * @create 2022-07-15 10:40
 */
@Data
public class GlobalException extends RuntimeException{
    private String code;

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message,String code) {
        super(message);
        this.code=code;
    }
}
